#include<stdio.h>
int main() {
	int n = 9;
	scanf("%d", &n);
	int arr[n];
	for (int i = 0; i < n; i++) {
		scanf("%d", &arr[i]);
	}
	int count = 1;
	for (int i = 0; i < n; i++) {
		for (int j = 8; j > i; j--) {
			if (arr[i] == arr[j]) {
				count++;
				break;
			}
		}
		count--;
		if (count == 0) {
			printf("找到了，单身狗就是：%d", arr[i]);
			break;
		}
	}
	return 0;
}


